<me:UITMKRF x:Class="WPFExcelReport.TPAV95"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"    
                    xmlns:AM="clr-namespace:WPFExcelReport;assembly=TAMSTAMM"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    FontSize="12"
                      xmlns:me="clr-namespace:WPFExcelReport"
                    x:Name="TV"
                    Loaded="Window_Loaded"
>
    <me:UITMKRF.Resources>
        <CollectionViewSource  x:Key="vwMaster"  />
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1440  x:Key="day"/>
        <ucd:Divideby480  x:Key="shift"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key="Trim"/>
        <ucd:PNumConverter x:Key="pnum"/>
    </me:UITMKRF.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="1"  >
            <WrapPanel> 
                <TextBlock  Text="{Binding Source={Localization:TranslateExtension Word=刷新}}" VerticalAlignment="Center"></TextBlock>
                <Button   Width="20" Height="20"  Margin="10,0,0,0" VerticalAlignment="Center" Command="{Binding RefreshCommand}">
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Refresh.png" />
                    </Button.Background>
                </Button>
                <TextBlock  Text="{Binding Source={Localization:TranslateExtension Word=显示:}}" VerticalAlignment="Center"></TextBlock>
                <ComboBox Name="Density" Width="40" VerticalAlignment="Center" Text="{Binding DENSITY,ElementName=TV}">
                    <ComboBoxItem>2</ComboBoxItem>
                    <ComboBoxItem>4</ComboBoxItem>
                    <ComboBoxItem>8</ComboBoxItem>
                    <ComboBoxItem>12</ComboBoxItem>
                    <ComboBoxItem>16</ComboBoxItem>
                    <ComboBoxItem>24</ComboBoxItem>
                    <ComboBoxItem>48</ComboBoxItem>
                    <ComboBoxItem>72</ComboBoxItem>
                </ComboBox>
                <TextBlock Name="txtDen" Text="{Binding Source={Localization:TranslateExtension Word=8小时}}" VerticalAlignment="Center"></TextBlock>
                <Button   Width="Auto"  Margin="10,0,0,0" Content="{Binding Source={Localization:Translate Word=当前}}"  VerticalAlignment="Center" Click="Current_Click" />
                       </WrapPanel>
            <WrapPanel Name="Board">
                <TextBlock Text="{Binding Source={Localization:Translate Word=任务个数:}}" Margin="10,0,0,0"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=0}}" Width="60" Name="txtJNUM"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=任务数量:}}"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=0}}" Width="100" Name="txtJQTY"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=拖期个数:}}"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=0}}" Width="60" Name="txtDJNUM"></TextBlock>
            </WrapPanel>
        </StackPanel>
        <Grid Grid.Row="1" >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <ex:AniScrollViewer  Grid.Row="0" Grid.Column="1"   Name="vwCalendar" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"  >
                <StackPanel Name="ZoneCalendar" Orientation="Horizontal"/>
            </ex:AniScrollViewer>
            <ex:AniScrollViewer  Grid.Row="1" Grid.Column="0"   Name="vwMachine"  VerticalScrollBarVisibility="Hidden" 
                                     ScrollChanged="vwMachine_ScrollChanged"
                                     >
                <StackPanel Name="MachineTable" />
            </ex:AniScrollViewer>
            <ex:AniScrollViewer  Grid.Row="1"  Grid.Column="1"   Name="mainViewer"  
                                     ScrollChanged="mainViewer_ScrollChanged"
                                     HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
                <StackPanel Name="machines" />
            </ex:AniScrollViewer>
        </Grid>
    </Grid>
</me:UITMKRF>

    
